const router = require('koa-router')
const app = new router({ prefix: "/main/bander" })
const { isslogin } = require('../../middleware/index')
const { getbander, addbander, updatabander, delbander } = require('../../controller/main/mainbander')
app.get('/', isslogin, getbander)
app.post('/add', isslogin, addbander)
app.post('/updata', isslogin, updatabander)
app.get('/del', isslogin, delbander)
module.exports = app